#include "widget.h"
#include <QtWidgets/QApplication>
#include <iostream>
int main(int argc, char *argv[])
{
    qSetMessagePattern("[ %{file}: %{line} ] %{message}");
    QApplication a(argc, argv);
    Widget w;
    w.show();
	int res;
	try
	{
		res = a.exec();
	}
	catch (...)
	{
		std::cerr<<"error"<<std::endl;
	}
    return res;
}
